package icse;

import java.io.File;
import java.io.FileInputStream;
import java.util.Properties;

public class RutasJSP implements java.io.Serializable{
	private static final long serialVersionUID = -8105416476002515376L;
	private String rutaJS;
	private String rutaCss;
	private String rutaImage;
	
	private static final String PATH = "/icse/online/multipais/multicanal/cfg/ini/";
	private static final String FILE = "rutas.properties";
	
	public RutasJSP(){
		File file = new File(Rutinas.getPath(PATH, FILE));
		Properties prop=new Properties();
		try{
			prop.load(new FileInputStream(file));
			setRutaJS(prop.getProperty("javascript"));
			setRutaCss(prop.getProperty("estilos")); 
			setRutaImage(prop.getProperty("imagenes"));
		}catch(Exception ex){
			System.out.println(ex.getMessage());
		}
	}

	public String getRutaCss() {
		return rutaCss;
	}

	public void setRutaCss(String rutaCss) {
		this.rutaCss = rutaCss;
	}

	public String getRutaImage() {
		return rutaImage;
	}

	public void setRutaImage(String rutaImage) {
		this.rutaImage = rutaImage;
	}

	public String getRutaJS() {
		return rutaJS;
	}

	public void setRutaJS(String rutaJS) {
		this.rutaJS = rutaJS;
	}
	
}
